package cn.nami.web.util;

public class StringUtil
{
	private StringUtil(){};
	
	public static boolean isEmpty(String str)
	{
		return (str == null || str.length() <= 0 || str.trim().length() <= 0 || "null".equals(str));
	}
	
	public static boolean isNotEmpty(String str)
	{
		return !isEmpty(str);
	}
	
	public static boolean isInteger(String str)
	{
		try
		{
			Integer.parseInt(str);
			return true;
		}
		catch (Exception e)
		{
			return false;
		}
	}
}